<%--
  Created by IntelliJ IDEA.
  User: zsh
  Date: 2020/9/18
  Time: 18:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script type="text/javascript">
        var json ={
            "people":[{
                "firstName" : "Brett",
                "lastName":"McLaughlin"
            },
                {
                    "firstName":"Jason",
                    "lastName":"Hunter"
                }
            ]
        };
        var people = json.people;
        for (var i in people) {
            alert(people[i].firstName+ "," +people[i].lastName);
        }
    </script>
</head>
<body>

</body>
</html>
